﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Data.Entitys.System
{
    /// <summary>
    /// 字典表
    /// </summary>
    [Table("SYS_DICTIONARY")]
    public class SysDictionary : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column("DICTIONARY_ID")]
        [MaxLength(32)]
        public string DictionaryId { get; set; } = Guid.NewGuid().ToString("N");

        /// <summary>
        /// 字典编号
        /// </summary>
        [Column("DICT_CODE")]
        [MaxLength(200)]
        public string DictCode { get; set; }

        /// <summary>
        /// 字典名称
        /// </summary>
        [Column("DICT_NAME")]
        [MaxLength(200)]
        public string DictName { get; set; }

        #region 外键
        /// <summary>
        /// 字典项值
        /// </summary>
        public List<SysDictionaryItems> SysDictionaryItems { get; set; }
        #endregion
    }
}
